; no actual changes here for the moment, but might have to mess with it if an item is changed in a hardcoded slot
; despite this seeming like it bails out with a success after checking your right hand, 
; the game does seem to miss more with offhand from back row
; so it might also check somewhere else

; [ check for back row penalty ]

; A: slot
; return carry set if no back row penalty
; is not called for harps or bows/arrows

31/A397: 29 07     AND #$07
31/A399: 85 52     STA $52
31/A39B: A0 31     LDY #$31		;item type bitfield s---habn
31/A39D: B1 6E     LDA ($6E),Y
31/A39F: C8        INY 
31/A3A0: 11 6E     ORA ($6E),Y
31/A3A2: 29 08     AND #$08	      ; **harp (unnecessary since harps don't call this routine)
31/A3A4: D0 58     BNE $A3FE          ; **no penalty if harp equipped (carry set)
31/A3A6: 20 90 BE  JSR $BE90          ; get character offset
31/A3A9: A8        TAY 
31/A3AA: C8        INY 
31/A3AB: C8        INY 
31/A3AC: C8        INY 
31/A3AD: B1 59     LDA ($59),Y        ; right hand item
31/A3AF: 85 18     STA $18
31/A3B1: C8        INY 
31/A3B2: C8        INY 
31/A3B3: B1 59     LDA ($59),Y        ; left hand item
31/A3B5: 85 19     STA $19
31/A3B7: 05 18     ORA $18
31/A3B9: F0 40     BEQ $A3FB          ; return if unarmed (carry clear)
31/A3BB: AD 1E 74  LDA $741E		
31/A3BE: D0 1E     BNE $A3DE		; branch if dual wielding
31/A3C0: A5 18     LDA $18		; right hand
31/A3C2: F0 0E     BEQ $A3D2		; skip to left if empty
31/A3C4: C9 57     CMP #$57		
31/A3C6: B0 0A     BCS $A3D2		; skip to left if shield
31/A3C8: C9 42     CMP #$42
31/A3CA: B0 2F     BCS $A3FB		; penalty if item >=$42 (blizzard Book)
31/A3CC: C9 3F     CMP #$3F
31/A3CE: 90 2B     BCC $A3FB		; penalty if item <$3F (boomerang)
31/A3D0: B0 2C     BCS $A3FE		; no penalty for >=$3F (boomerang)
31/A3D2: A5 19     LDA $19		; left hand
31/A3D4: C9 42     CMP #$42		
31/A3D6: B0 23     BCS $A3FB		;penalty if item >=$42 (blizzard Book)
31/A3D8: C9 3F     CMP #$3F
31/A3DA: 90 1F     BCC $A3FB		; penalty if item <$3F (boomerang)
31/A3DC: B0 20     BCS $A3FE		; no penalty for >=$3F (boomerang)
31/A3DE: AD 1F 74  LDA $741F		; number of attacks left to make
31/A3E1: C9 02     CMP #$02		
31/A3E3: D0 0C     BNE $A3F1		; branch if a weapon is in left hand
31/A3E5: A5 18     LDA $18		; right hand
31/A3E7: C9 42     CMP #$42		
31/A3E9: B0 10     BCS $A3FB		; penalty if item >=$42 (blizzard Book)
31/A3EB: C9 3F     CMP #$3F
31/A3ED: 90 0C     BCC $A3FB		; penalty if item <$3F (boomerang)
31/A3EF: B0 0D     BCS $A3FE		; no penalty for >=$3F (boomerang)
31/A3F1: A5 19     LDA $19		; left hand
31/A3F3: C9 42     CMP #$42
31/A3F5: B0 04     BCS $A3FB		; penalty if item >=$42 (blizzard Book)
31/A3F7: C9 3F     CMP #$3F
31/A3F9: B0 03     BCS $A3FE		; no penalty for >=$3F (boomerang)
31/A3FB: 18        CLC 			; penalty applies
31/A3FC: 90 01     BCC $A3FF		
31/A3FE: 38        SEC 
31/A3FF: 60        RTS 